import { get, post, put } from "../utils/request";

//注册请求
export const regApi = (data) => post("/api/v1/auth/reg", data);

//登录请求
export const LoginApi = (data) => post("/api/v1/auth/login", data);

//修改个人信息
export const modifyInfoApi = (data) => put("/api/v1/user/modify", data);

//修改密码
export const changePwdApi = (data) => put("/api/v1/user/update_pwd", data);

//获取个人信息
export const loadUserInfoApi = () => get("/api/v1/user/info");

//签到
export const checkApi = () => post('/api/v1/user/check_in')